﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Warehouse.Domain;
using W.Warehouse.Domain.Reportlosses;
using W.Warehouse.Repository.Interface;

namespace W.Warehouse.Repository.Impl
{
    public class ReportProductRepository : BaseRepositoy<ReportProduct>, IReportProductRepository
    {
        public ReportProductRepository(EFCoreDbContext context) : base(context)
        {
        }

        public async Task<int> AddAsync(ReportProduct t)
        {
            return await base.AddAsync(t);
        }

        public async Task<int> DeleteAsync(ReportProduct t)
        {
            return await base.DeleteAsync(t);
        }

        public async Task<List<ReportProduct>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<ReportProduct>> GetAsync(Expression<Func<ReportProduct, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<ReportProduct> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> UpdateAsync(ReportProduct t)
        {
            return await base.UpdateAsync(t);
        }

        public async Task<int> UpdateRangeAsync(List<ReportProduct> t)
        {
            return await base.UpdateRangeAsync(t);
        }
    }
}
